﻿package
{
	import com.greensock.TweenLite;
	
	import core.Model;
	
	import fl.text.ruler.ITabPicker;
	
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.geom.Point;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	
	public class PlayerTable extends MovieClip
	{
		
		public var playTableState:TextField;
		
		private var _owner:int;
		
		public function set owner(value:int):void
		{
			this._owner = value;
		}
		
		public function get owner():int
		{
			return this._owner;
		}
		
		public function PlayerTable()
		{
			super();
			this.buttonMode = true;
			this.useHandCursor = true;
			this.createChildren();
			playTableState.mouseEnabled = false;
			this.addEventListener(MouseEvent.CLICK,hideTextField);
		}
		
		private function hideTextField(event:MouseEvent):void {
			if(this.playTableState.alpha != 0){
				TweenLite.to(this.playTableState,0.4,{alpha:0});
			}
		}
		
		public function init():void {
			TweenLite.to(this.playTableState,0.4,{alpha:1});
		}
		/**
		 * 在屏幕添加筹码容器
		 * */
		protected function createChildren():void 
		{
		}
		
		public var position:Point;
		
		override public function set enabled(value:Boolean):void {
			super.enabled = value;
			this.mouseEnabled = value;
			this.mouseChildren = value;
		}
	}
}